import BaseApi from "../utils/http";
import RunData from "../config/runData";

/**
 * 修改手机号
 */
export default class changePhone extends BaseApi{
    userID;
    phoneNum;

    constructor(userID, phoneNum) {
        super();
        this.userID = userID;
        this.phoneNum = phoneNum;
    }

    getParamMethod(){
        if(RunData.MyUserInfo){
            if (RunData.MyUserInfo.isNewVersion()){
                return "modifyPhoneNumByPlt";
            }else{
                return "modifyPhoneNum";
            }
        }
    }
}